package com.uinnova.beetlstu.service;

/*
*@author 王刚
*@date 2019-01-19 13:35
*
*/

import com.uinnova.beetlstu.model.Blog;
import com.uinnova.beetlstu.model.Message;
import com.uinnova.beetlstu.model.User;
import org.beetl.sql.core.engine.PageQuery;

import java.util.List;

public interface BlogService {

    /*
    *根据用户名密码查询用户
    */
    User login(String userName,String password);

    /*
    *查询出规定分页好的博客数据
    */

    PageQuery<Blog> pageBlog(long pageNumber, long pageSize, String keyWord, String category);


    /*
    *根据id查询博客
    */
    Blog queryBlogById(Long blogId);

    /*
    *根据id查询博客的评论信息
    */
    PageQuery<Message> pageMsg(Long blogId,Integer pageNumber,Integer pageSize);





}
